package org.corolla.cloth.constdata;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.corolla.cloth.entity.ClothSize;


public class ClothSizeConst {
	
	private static Log log = LogFactory.getFactory().getInstance(ClothSizeConst.class);
	
	private static Map<String, ClothSize> clothSizeMap;
	
	
	/**
	 * A型
	 */
	public static final String A_16080 ="160/80A";
	public static final String A_16584 ="165/84A";
	public static final String A_17088 ="170/88A";
	public static final String A_17592 ="175/92A";
	public static final String A_18096 ="180/96A";
	public static final String A_185100 ="185/100A";
	public static final String A_190104 ="190/104A";
	
	
	/**
	 * B型
	 */
	public static final String B_16084 ="160/84B";
	public static final String B_16588 ="165/88B";
	public static final String B_17092 ="170/92B";
	public static final String B_17596 ="175/96B";
	public static final String B_180100 ="180/100B";
	public static final String B_185104 ="185/104B";
	public static final String B_190108 ="190/108B";

	
	/**
	 * C型
	 */
	public static final String C_16088 ="160/88C";
	public static final String C_16592 ="165/92C";
	public static final String C_17096 ="170/96C";
	public static final String C_175100 ="175/100C";
	public static final String C_180104 ="180/104C";
	public static final String C_185108 ="185/108C";
	public static final String C_190112 ="190/112C";

	/**
	 * D型
	 */
	public static final String D_16092 ="160/92D";
	public static final String D_16596 ="165/96D";
	public static final String D_170100 ="170/100D";
	public static final String D_175104 ="175/104D";
	public static final String D_180108 ="180/108D";
	public static final String D_185112 ="185/112D";
	public static final String D_190116 ="190/116D";

	
	/**
	 * E型
	 */
	public static final String E_16096 ="165/96E";
	public static final String E_165100 ="170/100E";
	public static final String E_170104 ="175/104E";
	public static final String E_175108 ="180/108E";
	public static final String E_180112 ="185/112E";
	public static final String E_185116 ="190/116E";
	public static final String E_190120 ="190/120E";
	
	static {
		
		log.info("Cloth Size Map加载中....");
		
		clothSizeMap = new HashMap<String, ClothSize>();
		
		/**
		 * SIZE = A_16080
		 */
		ClothSize clothSize = new ClothSize(A_16080,73,70,97,86,102,42.2,57.5);
		String key = A_16080;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = A_17088
		 */
		clothSize = new ClothSize(A_16584,75,72,101,90,106,43.6,59);		
		key = A_16584;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = A_17088
		 */
		clothSize = new ClothSize(A_17088,75,72,101,90,106,43.6,59);		
		key = A_17088;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = A_17592
		 */
		clothSize = new ClothSize(A_17592,75,72,101,90,106,43.6,59);		
		key = A_17592;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = A_18096
		 */
		clothSize = new ClothSize(A_18096,75,72,101,90,106,43.6,59);		
		key = A_18096;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = A_185100
		 */
		clothSize = new ClothSize(A_185100,75,72,101,90,106,43.6,59);		
		key = A_185100;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = A_190104
		 */
		clothSize = new ClothSize(A_190104,75,72,101,90,106,43.6,59);		
		key = A_190104;
		clothSizeMap.put(key, clothSize);
		
		//-----------------------B型号---------------
		/**
		 * SIZE = B_16084
		 * 160/84B    73,70,101,91,107,43.6,57.5
		 */
		clothSize = new ClothSize(B_16084,73,70,101,91,107,43.6,57.5);		
		key = B_16084;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = B_16588
		 */
		clothSize = new ClothSize(B_16588,75,72,105,95,111,45,59);		
		key = B_16588;
		clothSizeMap.put(key, clothSize);
	
		/**
		 * SIZE = B_17092
		 */
		clothSize = new ClothSize(B_17092,77,74,109,99,115,46.4,60.5);		
		key = B_17092;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = B_17596
		 */
		clothSize = new ClothSize(B_17596,79,76,113,103,119,47.8,62);		
		key = B_17596;
		clothSizeMap.put(key, clothSize);
	
		/**
		 * SIZE = B_180100
		 */
		clothSize = new ClothSize(B_180100,81,78,117,107,123,49.2,63.5);		
		key = B_180100;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = B_185104
		 */
		clothSize = new ClothSize(B_185104,83,80,121,111,127,50.6,65);		
		key = B_185104;
		clothSizeMap.put(key, clothSize);
	
		/**
		 * SIZE = B_190108
		 */
		clothSize = new ClothSize(B_190108,85,82,125,115,131,52,66.5);		
		key = B_190108;
		clothSizeMap.put(key, clothSize);
		
		//------------C型----------------
		/**
		 * SIZE = C_16088
		 */
		clothSize = new ClothSize(C_16088,73,70,105,96,111,45,57.5);		
		key = C_16088;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = C_16592
		 */
		clothSize = new ClothSize(C_16592,75,72,109,100,115,46.4,59);		
		key = C_16592;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = C_17096
		 */
		clothSize = new ClothSize(C_17096,77,74,113,104,119,47.8,60.5);		
		key = C_17096;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = C_175100
		 */
		clothSize = new ClothSize(C_175100,79,76,117,108,123,49.2,62);		
		key = C_175100;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = C_180104
		 */
		clothSize = new ClothSize(C_180104,81,78,121,112,127,50.6,63.5);		
		key = C_180104;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = C_185108
		 */
		clothSize = new ClothSize(C_185108,83,80,125,116,131,52,65);		
		key = C_185108;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = C_190112
		 */
		clothSize = new ClothSize(C_190112,85,82,129,120,135,53.4,66.5);		
		key = C_190112;
		clothSizeMap.put(key, clothSize);	
		
		//------------------------D型------------------------------
		/**
		 * SIZE = D_16092
		 */
		clothSize = new ClothSize(D_16092,73,70,109,101,115,46.4,57.5);		
		key = D_16092;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = D_16596
		 */
		clothSize = new ClothSize(D_16596,75,72,113,105,119,47.8,59);		
		key = D_16596;
		clothSizeMap.put(key, clothSize);

		/**
		 * SIZE = D_170100
		 */
		clothSize = new ClothSize(D_170100,77,74,117,109,123,49.2,60.5);		
		key = D_170100;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = D_175104
		 */
		clothSize = new ClothSize(D_175104,79,76,121,113,127,50.6,62);		
		key = D_175104;
		clothSizeMap.put(key, clothSize);		

		/**
		 * SIZE = D_180108
		 */
		clothSize = new ClothSize(D_180108,81,78,125,117,131,52,63.5);		
		key = D_180108;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = D_185112
		 */
		clothSize = new ClothSize(D_185112,83,80,129,121,135,53.4,65);		
		key = D_185112;
		clothSizeMap.put(key, clothSize);	

		/**
		 * SIZE = D_190116
		 */
		clothSize = new ClothSize(D_190116,85,82,133,125,139,54.8,66.5);		
		key = D_190116;
		clothSizeMap.put(key, clothSize);
		
		//------------------------E型------------------------------
		/**
		 * SIZE = E_16096
		 */
		clothSize = new ClothSize(E_16096,73,70,113,106,119,47.8,57.5);		
		key = E_16096;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = E_165100
		 */
		clothSize = new ClothSize(E_165100,75,72,117,110,123,49.2,59);		
		key = E_165100;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = E_170104
		 */
		clothSize = new ClothSize(E_170104,77,74,121,114,127,50.6,60.5);		
		key = E_170104;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = E_175108
		 */
		clothSize = new ClothSize(E_175108,79,76,125,118,131,52,62);		
		key = E_175108;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = E_180112
		 */
		clothSize = new ClothSize(E_180112,81,78,129,122,135,53.4,63.5);		
		key = E_180112;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = E_185116
		 */
		clothSize = new ClothSize(E_185116,83,80,133,126,139,54.8,65);		
		key = E_185116;
		clothSizeMap.put(key, clothSize);
		
		/**
		 * SIZE = E_190120
		 */
		clothSize = new ClothSize(E_190120,85,82,137,130,143,56.2,66.5);		
		key = E_190120;
		clothSizeMap.put(key, clothSize);
		
		log.info("Cloth Size Map 加载成功!!!");
		
	}
	
	/**
	 * 获取衣服大小的 const Map
	 * @return
	 */
	public static Map<String, ClothSize> getClothSizeMap(){
		return clothSizeMap;
	}
	
	
	
	
}
